<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@ page import="java.util.*"%>

<%
	String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%
	request.setCharacterEncoding("utf8");
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" />
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
<script type="text/javascript" src="js/bootstrap.js"></script>
<link rel="stylesheet"
	href="font-awesome-4.7.0/css/font-awesome.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title></title>
</head>


<body>
	<%@ include file="/adminHeader.jsp"%>
	<div class="container">
		<br> <br>

		<h3></h3>
		<form class="form" id="f1" method="post" action="bookManager/save" enctype="multipart/form-data">
			
	
			<div class="form-group">
			<!-- 超链接后添加一个type变量，为选择作者列表后返回的表单做区分 -->
				<label><a href="bookManager/toAuthorList?type=toSaveForm" class="btn btn-info">选择作者</a></label>
				<div class="controls">
					<input class="form-control" type="text" disabled="disabled" value="${sessionScope.authorName}"/>
					<input type="hidden" value="${param.authorId}" name="authorId" /><br>
				</div>
			</div>
			<div class="form-group">
				<label>书名</label>
				<div class="controls">
					<input class="form-control" type="text" name="title" value="${sessionScope.bookTitle}"/>
				</div>
			</div>
			
			<div class="form-group">
				<label>封面</label>
				<div class="controls">
					<input class="form-control" type="file" name="pictureFile"/>
				</div>
			</div>
			<div class="form-group">
				<label>简介</label>
				<textarea name="introduction" class="form-control" />${sessionScope.bookIntroduction}</textarea>

			</div>
			<button type="submit" class="btn btn-primary">
				<i class="fa fa-check">添加</i>
			</button>
			<button type="reset" class="btn btn-danger">
				<i class="fa fa-trash">取消</i>
			</button>




		</form>

	</div>


</body>
</html>